'use client'

import { notification } from 'antd'
import { useEffect } from 'react'

// 通知配置
const NotificationProvider = ({ children }) => {
    useEffect(() => {
        // 配置全局通知设置
        notification.config({
            placement: 'topRight',
            duration: 4.5,
            maxCount: 3,
            rtl: false,
        })
    }, [])

    return children
}

export default NotificationProvider